package vn.mycrm.client;



import vn.mycrm.client.ui.appointment.LichHen;
import vn.mycrm.client.ui.customer.KhachHang;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TabLayoutPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class MyCRM implements EntryPoint {
	
	
	
	public void onModuleLoad() {
		TabLayoutPanel tabPanel = new TabLayoutPanel(2, Unit.EM);
		tabPanel.setAnimationDuration(1000);
		tabPanel.setHeight("100%");
		tabPanel.setWidth("100%");		
		
		KhachHang khPanel = new KhachHang();
		LichHen lhPanel = new LichHen();		
		tabPanel.add(lhPanel, "LỊCH HẸN");
		tabPanel.add(khPanel, "KHÁCH HÀNG");		
		tabPanel.selectTab(0);	
		
		RootPanel main = RootPanel.get("mainPanel"); 
		main.setHeight("100%");
		main.add(tabPanel);
		
		
	}
}
